import * as ts from "./node_modules/typescript/lib/typescript";

const source = "const x: string  = 'string'";

const result = ts.transpileModule(source, { compilerOptions: { module: ts.ModuleKind.CommonJS } });

console.log(result.outputText);
